package cn.kgc.tangcco.service.impl;

import cn.kgc.tangcco.mapper.IdiomMapper;
import cn.kgc.tangcco.model.LayPage;
import cn.kgc.tangcco.model.PageParam;
import cn.kgc.tangcco.pojo.Idiom;
import cn.kgc.tangcco.service.IdiomService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/12/29 14:51
 */
@Service
public class IdiomServiceImpl implements IdiomService {

    @Autowired
    private IdiomMapper idiomMapper;

    @Override
    public List<Idiom> queryAll() {
        return idiomMapper.selectList(new QueryWrapper<Idiom>());
    }

    @Override
    public LayPage<Idiom> query(String token, PageParam pageParam) {
        LayPage<Idiom> layPage = new LayPage<>();
        return layPage;
    }
}
